home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_400 / 429_01 / chess12 / misc.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1994-03-30  |  400 b   |  18 lines

  1. #if !defined(MISC_HPP)
  2. #define MISC_HPP
  3.  
  4. #define uint unsigned int
  5.  
  6. typedef int BOOL;
  7. const int TRUE = 1, FALSE = 0;
  8.  
  9. // definition is local to the file in which it appears
  10. #define LOCAL static
  11. // member is instance-independent
  12. #define CLASSMEMBER static
  13.  
  14. // returns number of elements in array AA of any type elements
  15. #define ARRAY_LENGTH(AA) (sizeof(AA) / sizeof((AA)[0]))
  16.  
  17. #endif
  18.